import { postRequest, getRequest, deleteRequest } from '/@/lib/axios';

// 查询直播车辆列表
export function listLiveVehicle(query) {
  return getRequest('/vehicleSys/liveVehicle/list', query)
}

// 查询直播车辆详细
export function getLiveVehicle(id) {
  return getRequest(`/vehicleSys/liveVehicle/${id}`)
}

// 新增直播车辆
export function addLiveVehicle(data) {
  return postRequest('/vehicleSys/liveVehicle', data)
}

// 修改直播车辆
export function updateLiveVehicle(data) {
  return postRequest('/vehicleSys/liveVehicle', data)
}

// 删除直播车辆
export function delLiveVehicle(id) {
  return deleteRequest(`/vehicleSys/liveVehicle/${id}`)
}
